﻿<div ng-controller="proveedorController">
    <form ng-submit="save()">
        <div class="table-responsive">
            <h3>NUEVO REGISTRO</h3>
            <table class="table table-striped table-bordered"> <!-- (yuri mamani ramos crud Proveedores)-->

                <tr>
                    <td>Nombre:<input type="text" ng-model="proveedor.nombre" /></td>
                    <td>RazonSocial:<input type="text" ng-model="proveedor.razonsocial" /></td>
                    <td>Ruc :<input type="text" ng-model="proveedor.ruc" /></td>
                    <td>Direccion:<input type="text" ng-model="proveedor.direccion" /></td>
                    <td>Telefono:<input type="number" ng-model="proveedor.telefono" /></td>
                    <td>Celular:<input type="number" ng-model="proveedor.celular" /></td>
                    <td>Estado:<input type="number" ng-model="proveedor.estado" /></td>
                    <td><button class="btn btn-primary" type="submit">Save</button></td>


                </tr>
            </table>
        </div>
    </form>
    <div class="table-responsive">
        <h3>LISTA DE  REGISTROS</h3>
        <table class="table table-striped table-bordered">

            <tr>
                <th>Nombre</th>
                <th>RazonSocial</th>
                <th>Ruc</th>
                <th>Direccion</th>
                <th>Telefono</th>
                <th>Celular</th>
                <th>Estado</th>
            </tr>
        <tr ng-repeat="d in proveedores">
                <td>{{d.nombre}}</td>
                <td>{{d.razonsocial}}</td>
                <td>{{d.ruc}}</td>
                <td>{{d.direccion}}</td>
                <td>{{d.telefono}}</td>
                <td>{{d.celular}}</td>
                <td>{{d.estado}}</td>

                <td>
                    <a href="" ng-click="delete(d.id)">x</a>
                    <a href="" ng-click="selec(d)">Select</a>
                </td>
        </tr>
    </table>
</div>
</div>

